package controller;

import entity.User;
import service.UserServices;
import service.UserServicesImpl;

/**
 * @Author:SA
 * @DATA:DATA
 * 用户请求的控制层
 */


public class UserController {
    private UserServices userServices = new UserServicesImpl();

    //登录
    public boolean login(User user){
        boolean login = userServices.login(user);
        return  login;

    }


    //注册
    public boolean register(User user){
        boolean register = userServices.register(user);
        return  register;

    }


}
